package oopday03.Test02;

public class Vehicles {
    String brand;
    String colcor;

    public Vehicles(String brand, String colcor) {
        this.brand = brand;
        this.colcor = colcor;
    }

    public Vehicles() {

    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getColcor() {
        return colcor;
    }

    public void setColcor(String colcor) {
        this.colcor = colcor;
    }

    public void run() {
        System.out.println("我已经开动了！");
    }

    public void showInfo() {
        System.out.println("商标是：" + getBrand() + ",颜色是:" + getColcor());
    }
}
